package com.zzy.system.domain;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zzy.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 功能描述: 观麦商户
 *
 * @author zhouzhiyong
 * @date 2024/12/17 22:54
 */
@Data
public class GuanmaiSpu extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private int guanmaiSpuId;
    /**
     * SPU ID
     */
    @JSONField(name = "spu_id")
    private String spuId;

    /**
     * SPU 名称
     */
    @JSONField(name = "spu_name")
    private String spuName;

    /**
     * 基本单位
     */
    @JSONField(name = "std_unit_name")
    private String stdUnitName;

    /**
     * 一级分类 ID
     */
    @JSONField(name = "category1_id")
    private String category1Id;

    /**
     * 品类 ID
     */
    @JSONField(name = "category2_id")
    private String category2Id;

    /**
     * 另一个标识用的 SPU ID
     */
    @JSONField(name = "pinlei_id")
    private String pinleiId;

    /**
     * SPU 共享类型，0：通用 1：私有
     * 允许值: 0, 1
     */
    @JSONField(name = "p_type")
    private Integer pType;

    /**
     * 投框方式，1：按订单投框 2：按司机投框
     * 允许值: 0, 1
     */
    @JSONField(name = "dispatch_method")
    private Integer dispatchMethod;

    /**
     * 描述
     */
    @JSONField(name = "desc")
    private String guanmaiDesc;


    /**
     * 创建时间
     */
    @JSONField(name = "create_time")
    private String guanmaiCreateTime;

    /**
     * 修改时间
     */
    @JSONField(name = "modify_time")
    private String guanmaiModifyTime;

    /**
     * SPU 自定义编码
     */
    @JSONField(name = "customize_code")
    private String customizeCode;
    @JSONField(name = "images")
    @TableField(exist = false)
    private List<String> images;
    @JSONField(name = "remarks1")
    private String remarks1;
    @JSONField(name = "remarks2")
    private String remarks2;
    @JSONField(name = "remarks3")
    private String remarks3;

    private String imagePath;
    private int isPush;
    /**
     * 溯源平台返回的id
     */
    private String prodId;
    private Date pushDate;

}
